package com.qf.service;

/**
 * 代理实现类:实现的接口就是房东的接口
 *
 * @author lixu
 */
public class FangDongProxyServiceImpl implements FangDongService{

    //找到房东参加进来
    //声明
    private FangDongService fangDongService;
    public void setFangDongService(FangDongService fangDongService) {
        this.fangDongService = fangDongService;
    }

    /**
     * 租房  中介
     */
    @Override
    public void zufang() {
        //辅助业务
        System.out.println("1、发布租房信息");
        System.out.println("2、带租户看房");
        //核心业务
        fangDongService.zufang();
    }
}
